<%@ page import="java.util.Arrays" %><%--
  Created by IntelliJ IDEA.
  User: win
  Date: 2020/10/18
  Time: 14:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>实现请求参数数值的获取</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
%>
<%--JSP中原始的方式获取数据和打印--%>
<%= "姓名是："+request.getParameter("name")%><br>
<%= "爱好是："+ Arrays.toString(request.getParameterValues("hobby"))%><br>
<br>
<%--EL表达式获取数据--%>
姓名是：${param.name}<br>
爱好是：${paramValues.hobby[0]}<br>
</body>
</html>
